<#macro paginationindex pb mn pageTxtId="">
	<div class="page">
		<ul>
			<#if (pb.total > 0)>
			<li class="disablepage"<#if (pb.page == 1)> disabled<#else> onclick="javascript: ${mn}(1);"</#if>>首页</li>
			<li class="disablepage"<#if (pb.page == 1)> disabled<#else> onclick="javascript: ${mn}(${pb.page - 1});"</#if>>上一页</li>
			<#list pb.startPage..pb.endPage as i>
			<li <#if (pb.page == i)>class="currentpage"</#if> onclick="javascript: ${mn}(${i});">
				<#if (pb.page != i)><a href="javascript:;">${i}</a><#else>${i}</#if>
			</li>
			</#list>
			<li class="disablepage"<#if (pb.page == pb.endPage)> disabled<#else> onclick="javascript: ${mn}(${pb.page + 1});"</#if>>下一页</li>
			<li class="disablepage"<#if (pb.page == pb.endPage)> disabled<#else> onclick="javascript: ${mn}(${pb.pageCount});"</#if>>尾页</li>
			<li class="disablepage" disabled>共计：${(pb.total)!'0'}条记录，当前：${pb.page}/${(pb.pageCount)!'0'}页</li>
			<#else>
			<li class="btn" disabled>未找到任何符合条件的记录</a>
			</#if>
			 <#if (pageTxtId?? && '' != pageTxtId)>
				<input type="hidden" value="${pb.page}" />
			</#if>
		</ul>
	</div>
</#macro>



<#-- 首页列表分页 -->
<#macro paginationIndex pb mapping type contextPath>
<div class="page">
	<ul>
		<#if pb.total gt 0>
		<li><a class="disablepage" href="${contextPath}${mapping}.html?type=${type}&page=1">首页</a></li>
		<#if pb.page != 1><li><a class="disablepage" href="${contextPath}${mapping}.html?type=${type}&page=${pb.page - 1}">上一页</a></li></#if>
		<#list pb.startPage..pb.endPage as i>
		<li><a <#if pb.page == i>class="currentpage" href="javascript:"<#else>href="${contextPath}${mapping}.html?type=${type}&page=${i}"</#if>>${i}</a></li>
		</#list>
		<#if pb.page != pb.endPage><li><a class="nextpage" href="${contextPath}${mapping}.html?type=${type}&page=${pb.page + 1}">下一页</a></li></#if>
		<#if pb.page != pb.endPage><li><a class="nextpage" href="${contextPath}${mapping}.html?type=${type}&page=${pb.pageCount}">尾页</a></li></#if>
		<li class="disablepage">共计：${pb.total!'0'}条记录，当前：${pb.page}/${pb.pageCount!'0'}页</li>
		</#if>
	</ul>
</div>
</#macro>